#include <stdio.h>
#include <string.h>
#include "crypto/types.h"
#include "crypto/des.h"
#include "crypto/bits.h"

void main()
{
    byte *buffer = "ABCDEFGH";
    byte cryptoText[1024];
    byte *plainText = "Hello, I am esheeper. I am a programer!";
    byte originText[1024];
    int len = strlen(plainText);
    des(plainText, cryptoText, buffer, len, ENCODE);
    des(cryptoText, originText, buffer, (len + 7) / 8 * 8, DECODE);
    printf("Encode: \t%s\n", cryptoText);
    printf("Decode: \t%s\n", originText);
}